/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package frontera;

import Control.CrudTarea;
import Entidad.Tarea;

/**
 *
 * @author Stiv
 */
public class InformacionTarea extends javax.swing.JPanel {

    int idTarea;
    public InformacionTarea() {
        initComponents();
    }

    public InformacionTarea(int idTarea) {
        this.idTarea = idTarea;
        recibirID();
    }
    
    
    
    
    public void recibirID(){
        for(Tarea u: CrudTarea.bringAll()){
                if(u.getID() == idTarea){
                    //NombreTF.setText(String.valueOf(u.getID()));
                    
                }
                
                }
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        NombreTF = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();

        NombreTF.setBackground(new java.awt.Color(255, 204, 102));
        NombreTF.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N

        jLabel1.setText("ID");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(NombreTF, javax.swing.GroupLayout.DEFAULT_SIZE, 750, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addContainerGap(729, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(NombreTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel1)
                .addGap(0, 241, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField NombreTF;
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables
}
